﻿using SheepStorage.Domain.Dto.InputDto;
using SheepStorage.Domain.DTO.Output;
using SheepStorage.Domain.Entity;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SheepStorage.Service.Interface
{
    /// <summary>
    /// 服务接口
    /// </summary>
    public interface IProviderManageService
    {
        /// <summary>
        /// 供应商列表
        /// </summary>
        /// <returns></returns>
        Task<PageOutput<ProviderManage>> GetProviderManage(PageInput input);

        /// <summary>
        /// 供应商添加
        /// </summary>
        /// <param name="provider"></param>
        /// <returns></returns>
        Task<int> AddProviderManage(ProviderManage provider);


        /// <summary>
        /// 批量删除/逻辑删除
        /// </summary>
        /// <param name="idList"></param>
        /// <returns></returns>
        Task<int> DeleteProviderManage(params int[] idList);

        /// <summary>
        /// 查询单条数据
        /// </summary>
        /// <param name="providerId"></param>
        /// <returns></returns>
        Task<ProviderManage> GetProviderManageInfo(int providerId);

    }
}
